/*
 * Copyrignt (c) xuzeshui.com. All Rights Reserved.
 * Author: Xiaobao Zeng<zengxiaobao@skyworth.com>
 * Created Time: 2017-04-05 18:16:30
 * Last Modified: 2017-06-21 11:32:00
 * File Name: admin.go
 * Description:
 */

package admin


type QKLeague struct {
	Id              int64  `json:"id"`
	LeagueId        string `json:"league_id"`
	AccountId       string `json:"account_id"`
	PassWord        string `json:"pass_word"`
	NickName        string `json:"nick_name"`
	MainName        string `json:"main_name"`
	RegionAddr      string `json:"region_addr"`
	ContactPeer     string `json:"contact_peer"`
	Mobile          string `json:"mobile"`
	WashRoomNum     int    `json:"washroom_num"`
	WasherNum       int    `json:"washer_num"`
	BankAccountName string `json:"bank_account_name"`
	BankAccount     string `json:"bank_account"`
	Bank            string `json:"bank"`
}

type QKLWashRoom struct {
	Id           int64  `json:"id"`
	WashRoomId   string `json:"washroom_id"`
	WashRoomName string `json:"washroom_name"`
	Lat          string `json:"lat"`
	Lng          string `json:"lng"`
	Area         string `json:"area"`
	AddrDetail   string `json:"addr_detail"`
	RegionCode   string `json:"region_code"`
	DeployType   int    `json:"deploy_type"`
	WasherNum    int    `json:"washer_num"`
	IsTest       int    `json:"is_test"`
	Type         int    `json:"type"`
	InsertTime   string `json:"insert_time"`
	LeagueName   string `json:"league_name"`
	LeagueId     string `json:"league_id"`
}

type QKLWasher struct {
	WasherId     string `json:"washer_id"`
	IMEI         string `json:"imei"`
	AddrDetail   string `json:"addr_detail"`
	ActiveTime   string `json:"active_time"`
	InsertTime   string `json:"insert_time"`
	RunState     string `json:"run_state"`
	WashRoomId   string `json:"washroom_id"`
	WashRoomName string `json:"washroom_name"`
	LeagueId     string `json:"league_id"`
	LeagueName   string `json:"league_name"`
	EnAble       int    `json:"enable"`
	AdminUid     string `json:"admin_uid"`
	SeqNum       int    `json:"seqnum"`
	Deposit      int    `json:"deposit"`
	DeployType   int    `json:"deploy_type"`
	Lat          string `json:"lat"`
	Lng          string `json:"lng"`
	IsTest       int    `json:"is_test"`
	IsCard       int     `json:"is_card"`
}
type QKWasherPrice struct {
	//ModeId       string  `json:"mode_id"`
	WasherId     string  `json:"washer_id"`
	Imei         string  `json:"imei"`
	//WashModeId   int     `json:"wash_mode_id"`
	QBA           int     `json:"qb_a"`
	QBB           int     `json:"qb_b"`
	QBC           int     `json:"qb_c"`
	QBD           int     `json:"qb_d"`
	CardA         int     `json:"card_a"`
	CardB         int     `json:"card_b"`
	CardC         int     `json:"card_c"`
	CardD         int     `json:"card_d"`
	CardFlag      int     `json:"card_flag"`
}


type ShowItemReq struct {
	PageIndex int  //分页页码
	PageSize  int  //分页大小
	Role      bool //访问角色, 客户端-true, 后台-false
}

type ShowItemResp struct {
	Code      uint
	Msg       string
	Data      []interface{}
	DWasher   []string
	Dimei     []string
	HasMore   bool
	Total     int
	PageIndex int //分页页码
	PageSize  int //分页大小
}

/*
	alter table league_user add column account_id varchar(32) not null default '' comment '加盟商账户id,一般为手机号' after userid;
	alter table league_user add column pass_word varchar(64) not null default '' comment '加盟商账户密码' after account_id;
	alter table league_user add column main_name varchar(128) not null default '' comment '加盟商主体名，签约公司名 或 个人名称' after nick_name;
	alter table league_user add column contact_peer varchar(128) not null default '' comment '联系人名称' after mobile;
	alter table league_user add column bank varchar(128) not null default '' comment '开户行' after region_addr;
	alter table league_user add column bank_account varchar(128) not null default '' comment '银行账户' after bank;
	alter table league_user add column bank_account_name varchar(128) not null default '' comment '银行账户名' after bank_account;
*/
